-
Notifications
You must be signed in to change notification settings - Fork 486
Matter Sensor: Add modular profile supports for AQS #2082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Duplicate profile check: Passed - no duplicate profiles detected. |
Invitation URL: |
Test Results 67 files 435 suites 0s ⏱️ Results for commit 632d75c. ♻️ This comment has been updated with latest results. |
Minimum allowed coverage is Generated by 🐒 cobertura-action against 632d75c |
271a839
to
83f4407
Compare
drivers/SmartThings/matter-sensor/src/air-quality-sensor/init.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/matter-sensor/src/air-quality-sensor/init.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/matter-sensor/src/air-quality-sensor/init.lua
Outdated
Show resolved
Hide resolved
drivers/SmartThings/matter-sensor/src/air-quality-sensor/init.lua
Outdated
Show resolved
Hide resolved
83f4407
to
91e95e5
Compare
da8c20f
to
6a42641
Compare
6a42641
to
ecf0a67
Compare
ffd6bb3
to
c08a758
Compare
match_modular_profile(driver, device) | ||
else | ||
match_profile_switch(driver, device) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit there's a extra line here
end | ||
|
||
local function do_configure(driver, device) | ||
-- we have to read the unit before reports of values will do anything |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-- we have to read the unit before reports of values will do anything | |
-- we have to read the unit before reports of values will do anything |
version: 1 | ||
categories: | ||
- name: AirQualityDetector | ||
preferences: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need two versions of this profile, one without the preferences, since temperatureMeasurement
and relativeHumidityMeasurement
are optional
local matter_air_quality_sensor_handler = { | ||
NAME = "matter-air-quality-sensor", | ||
lifecycle_handlers = { | ||
init = device_init, | ||
doConfigure = do_configure | ||
doConfigure = do_configure, | ||
infoChanged = info_changed, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we implement a driverSwitched
handler and call match_modular_profile
from it?
|
||
local clusters = require "st.matter.clusters" | ||
|
||
clusters.AirQuality = require "AirQuality" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason you're testing with the embedded clusters rather than from the lua libs?
Check all that apply
Type of Change
Checklist
Description of Change
Summary of Completed Tests